/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package algorithm;

/**
 *
 * @author Pierre
 */
public interface Population extends Cloneable {

    public void add(Individual individual);
    public void add(Individual[] individual);
    public int getSize();
    public Individual getIndividual(int i);
    public void sort(Environment environment);
    public void replaceWorst(Individual individual, Environment environment);
    public void setIndividual(int i, Individual individual) throws AlgorithmErrorException;
}
